package com.lwx.bus.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lwx
 * @since 2020-04-21
 */
@Data
@Entity
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Table(name = "bus_goods")
@TableName("bus_goods")
public class Goods implements Serializable {

    private static final long serialVersionUID=1L;

    @Id
    @TableId(value = "id", type = IdType.AUTO)
    @Column(name = "ID")
    private Integer id;

    @Column(name = "GOODSNAME")
    private String goodsname;

    @Column(name = "PRODUCEPLACE")
    private String produceplace;

    @Column(name = "SIZE")
    private String size;

    @Column(name = "GOODSPACKAGE")
    private String goodspackage;

    @Column(name = "PRODUCTCODE")
    private String productcode;

    @Column(name = "PROMITCODE")
    private String promitcode;

    @Column(name = "DESCRIPTION")
    private String description;

    @Column(name = "PRICE")
    private Double price;

    @Column(name = "NUMBER")
    private Integer number;

    @Column(name = "DANGERNUM")
    private Integer dangernum;

    @Column(name = "GOODSIMG")
    private String goodsimg;

    @Column(name = "AVAILABLE")
    private Integer available;

    @Column(name = "PROVIDERID")
    private Integer providerid;

    @TableField(exist = false)//表示不会当成数据库表的字段，但是页面中有用
    @Column(name = "PROVIDERNAME")
    private String providername;


}
